package card;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 故我
 * Date: 2024-01-30
 * Time: 14:35
 */
public class card {
    private String suite; // 花色
    private int number;// 数字

    public card(String suite, int number) {
        this.suite = suite;
        this.number = number;
    }

    public String getSuite() {
        return suite;
    }

    public void setSuite(String suite) {
        this.suite = suite;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    // 重写 tostring 方法

    @Override
    public String toString() {
        return suite + ":" + number;
    }
}
